-- GENERATED SPELL FOR [Corrupted Spirit] --


function spell0_14512(pUnit, Event) --@Corruption,n/a--
pUnit:FullCastSpellOnTarget(18376,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_14512', 26000, 1)
end

function Sorts_14512(pUnit, Event)
local choix_sorts_14512 = math.random(0, 0)
if choix_sorts_14512 == 0 then
pUnit:RegisterEvent('spell0_14512', 1, 1)
end
end

function mob14512_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_14512', math.random(1500, 3000), 1)
end

function mob14512_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob14512_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob14512_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(14512, 1, 'mob14512_Action')
RegisterUnitEvent(14512, 2, 'mob14512_Leave')
RegisterUnitEvent(14512, 3, 'mob14512_Kill')
RegisterUnitEvent(14512, 4, 'mob14512_Die')
